package com.bjc.gmall;

import com.bjc.gmall.service.OrderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @program: dubbo-study
 * @description: 消费者启动类
 * @author: bjc
 * @create: 2020-07-19 14:14
 */
public class MainApplication {

    @SuppressWarnings("resource")
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("consumer.xml");
        OrderService or = applicationContext.getBean(OrderService.class);
        or.initOrder("1");
//
        System.out.println("调用完成。。。。。");
        System.in.read();
    }
}
